//
//  WinInfoView.swift
//  SlaughterClient
//
//  Created by 邱仙凯 on 2020/2/10.
//  Copyright © 2020 zwb. All rights reserved.
//

import UIKit

class WinInfoView: UIView {

    @IBOutlet weak var titleLab: UITextField!
    @IBOutlet weak var content1: UILabel!
       @IBOutlet weak var content2: UILabel!
       @IBOutlet weak var content3: UILabel!
       @IBOutlet weak var content4: UILabel!

    var bianhaoClosure:(()->())?
    
    /// 招标编号后面的字符
    var contentStr:String = "" {
         didSet {
             let paraph = NSMutableParagraphStyle()
             //将行间距设置为28
             paraph.lineSpacing = 5
             //样式属性集合
             let attributes = [NSAttributedString.Key.font:UIFont.systemFont(ofSize: 14),
                               NSAttributedString.Key.paragraphStyle: paraph]
             self.content4.attributedText = NSAttributedString(string: contentStr, attributes: attributes)
             
         }
     }
 
    override func awakeFromNib() {
        super.awakeFromNib()
        content3.isUserInteractionEnabled = true
        let tapGesture1 = UITapGestureRecognizer(target: self, action: #selector(zbnoAction))
        content3.addGestureRecognizer(tapGesture1)
    }
    @objc func zbnoAction() {
        print("ooooo")
        if let clo = bianhaoClosure {
            clo()
        }
        
    }

}
